<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<html>
<head>
<sj:head />
</head>
<body>

<s:url var="oemManagementActionUrl" action="oemManagementAction" />

<sj:tabbedpanel id="ManagementTab" animate="true" collapsible="true"
	useSelectedTabCookie="false">
	<sj:tab id="tab1" target="UserManagement" label="User Management" cssClass="heading"/>
	<sj:tab id="tab2" target="YardManagement" label="Yard Management" />
	<sj:tab id="tab2" label="OEM Management" href="%{oemManagementActionUrl}"/>
	<sj:tab id="tab2" target="VendorManagement" label="Vendor Management" />
	


	<div id="YardManagement">
		<s:url var="yardUrl" action="yard" />
		<s:url var="showSectionsUrl" action="manageAllSections" />
		<s:url var="manageMemberUrl" action="manageMember" />
		<s:url var="showKeyBinUrl" action="manageAllKeyBins" />   
		<s:url var="manageTransporterUrl" action="manageTransporter" />
		
		
		<sj:tabbedpanel
				id="YardManagementTab" selectedTab="1">

			<sj:tab id="tab1" href="%{yardUrl}" label="Manage Yard" />
			<sj:tab id="tab2" href="%{showSectionsUrl}" label="Manage Section" />
			<sj:tab id="tab3" href="%{manageMemberUrl}" label="Member Management" />
			<sj:tab id="tab4" href="%{showKeyBinUrl}" label="Manage Key Bin" />
			<sj:tab id="tab5" href="%{manageTransporterUrl}" label="Transporter Management" />
			
		</sj:tabbedpanel>
	</div>

	<div id="UserManagement">
		<s:url var="roleManagementActionUrl" action="roleManagementAction" />
		<s:url var="createUserActionUrl" action="createUserAction" /> 
		<sj:tabbedpanel
				id="UserManagementTab" selectedTab="1">

			<sj:tab id="tab1" href="%{roleManagementActionUrl}" label="Role Management" />
			<sj:tab id="tab2" href="%{createUserActionUrl}" label="User Management" />
		</sj:tabbedpanel>
	</div>
	
	<!--<div id="OEMManagement">
		<s:url var="oemManagementActionUrl" action="oemManagementAction" /> 
		<sj:tabbedpanel
				id="OEMManagementTab" selectedTab="1">

			<sj:tab id="tab1" href="%{oemManagementActionUrl}" label="OEM Management" />
		</sj:tabbedpanel>
	</div>
	
	--><div id="VendorManagement">
		<s:url var="vendorManagementActionUrl" action="vendorManagementAction" /> 
		<sj:tabbedpanel
				id="VendorManagementTab" selectedTab="1">

			<sj:tab id="tab1" href="%{vendorManagementActionUrl}" label="Vendor Management" />
		</sj:tabbedpanel>
	</div>
	
	
</sj:tabbedpanel>
</body>
</html>